import React, { Component } from 'react'
import Login from './views/Login'
import Maincontent from './views/components/Maincontent'
import { Route, Redirect, Switch } from 'react-router-dom'
export default class App extends Component {
  render() {
    return (
      <div>
        <Switch>
          <Route path="/main" component={Maincontent}></Route>
          <Route path="/login" component={Login}></Route>
          <Redirect to="/login" />
        </Switch>
      </div>
    )
  }
}
